<?php
/**
 * Created by JetBrains PhpStorm.
 * User: CAIXUDONG
 * Date: 11-6-16
 * Time: 下午4:37
 */
 
include 'bootstrap.php';

$user_info = Controller::getInstance('user')->needLogin();

if($user_info){
    $_session->del('user_id');
    setcookie('user_id',NULL,time()-3600*24,'/', COOKIE_DOMAIN);
}

redirect('login.php');